<?php

namespace app\admin\model;

use app\common\model\TimeModel;

class SpellGroup extends TimeModel
{

    protected $name = "spell_group";

    protected $deleteTime = false;

    
    public function good()
    {
        return $this->belongsTo('\app\admin\model\Good', 'goods_id', 'id');
    }

    
    public function getTemplateOfFreightList()
    {
        return ['1'=>'包邮','2'=>'不包邮',];
    }

    public function getActiveStateList()
    {
        return ['0'=>'关闭','1'=>'开启',];
    }

    public function getStatusList()
    {
        return ['0'=>'禁用','1'=>'开启',];
    }


}